import request from "./request"
//分页查询
export const PageQuery = (params) => {
  return request({
    url: "/admin/songList/page",
    method: "get",
    params: params
  })
}
//添加歌单
export const addSongList = (data) => {
  return request({
      url: "/admin/songList/addSongList",
      method: "post",
      data: data
  })
  }
  //id
  export const SelectSongListById = (id) => {
    return request({
      url: `/admin/songList/${id}`,
      method: "get"
    })
  }
//修改
  export const UpdateById = (params) => {
    return request({
      url: "/admin/songList/update",
      method: "put",
      data : params
    })
  }
  export const DeleteSongList = (id) => {
    return request({
      url: "/admin/songList/delete",
      method: "delete",
      params:{
        id : id
      }
    })
  }